<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>订单接口列表</title>
	<%@ include file="/view/common/tags.jsp"%>
	<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"> </script>
</head>
<body>
	<section class="content">
    	<div class="row">
            <div class="col-md-12">
	            <ul class="nav nav-tabs" role="tablist" id="myTabs">
					<li role="presentation" class="active"><a href="#home" data-toggle="tab" >链接</a></li>
					<li role="presentation"><a href="#profile" data-toggle="tab">游戏ID</a></li>
				</ul>
				<input type="hidden" id = "goBackFlag" value="${goBackFlag}"/>
				<div class="tab-content" id="myTabContent">
					<div role="tabpanel" class="tab-pane active" id="home">
				  		<div class="box">
		            		<div class="box-body">
								<div class="panel panel-default">
			                        <div class="panel-body" style="padding-bottom:5px;">
			                            <form class="form-horizontal linkClassFrom" action="" method="post" id="dataForm">
			                            	<div class="searchMenu">
			                            		<div>
			                                     	<label style="width:120px;min-width:auto">订单编号：</label>
			                                        <input type="text" class="form-control" name="wm[_LIKE$a.ORDER_NO]" value=""   placeholder="请输入订单编号">
			                                    </div>
			                             		<div>
			                                     <label style="width:120px;min-width:auto">用户帐号：</label>
			                                        <input type="text" class="form-control" name="wm[_LIKE$USER_ACCOUNT]" value=""   placeholder="请输入用户帐号">
			                                    </div>
			                            		<div>
			                                		<label style="width:120px;min-width:auto">游戏名称：</label>
			                                    	<sk:select cssClass="form-control select" name="wm[GAME_ID]" value="">
									                	<option value="">请选择</option>
														<sk:options  options="${gameNameList}" ></sk:options>
									            	</sk:select>
			                                    </div> 
			                                    <div>
			                                		<label style="width:120px">url类型(游戏)：</label>
			                                    	<select class="form-control select" name="wm[URL_TYPE]" value="">
									                	<option value="">请选择</option>
									                	<option value="1">球球大作战/贪吃蛇大作战</option>
									                	<option value="2">欢乐球吃球</option>
									            	<select>
			                                    </div>
			                                    <div>
			                                    	<label style="width:120px">最后请求时间：</label>
			                                        <input id="createTimeStart" name="wm[_MORE_EQUAL$a.LAST_TIME]" value="${page.wm._MORE_EQUAL$LAST_TIME}"  type="text"  class="Wdate" 
														onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 00:00:00',alwaysUseStartDate:true,maxDate:'#F{$dp.$D(\'createTimeEnd\')}',minDate:'#F{$dp.$D(\'createTimeEnd\',{d:-30,H:-23,m:-59,s:-59})}'})" /> 
													<span class="pull-left">&nbsp;-&nbsp;</span>
													<input id="createTimeEnd" name="wm[_LESS_EQUAL$a.LAST_TIME]" value="${page.wm._LESS_EQUAL$LAST_TIME}"  class="Wdate" 
										            	onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 23:59:59',alwaysUseStartDate:true,minDate:'#F{$dp.$D(\'createTimeStart\')}',maxDate:'#F{$dp.$D(\'createTimeStart\',{d:+30,H:+23,m:+59,s:+59})}'})" />
			                                    </div>
			                                    <div>
			                                		<label style="width:120px">赠送内容：</label>
			                                    	<select class="form-control select" name="wm[GAME_TYPE]" value="">
									                	<option value="">请选择</option>
									                	<option value="1">棒棒糖</option>
									                	<option value="2">龙蛋</option>
									                	<option value="3">金币</option>
									                	<option value="4">星贝</option>
									            	<select>
			                                    </div>
			                                    <div>
			                                    	<label style="width:120px">关键词：</label>
		                                            <input type="text" class="form-control" id="PROPERTY_VALUE_LINK" style="width:366px" value=""  placeholder="请输入链接查询">
		                                            <input type="hidden"  name="wm[b.PROPERTY_VALUE]">
		                                        </div>
			                                    <div class="mal10" >
			                                    	<button type="button"  class="btn btn-primary btn-sm"  onclick="findData()"><span class='glyphicon glyphicon-search'></span>查&nbsp;询</button>
			                                    </div>
			                            	</div>
			                            </form>
			                    	</div>
			                    	<div style="color: #f00;padding-left: 64px;margin-bottom: 10px;">
                                    	温馨提示：链接是一次请求，没有回调；请求成功就认为订单完成。
                                    </div>
								</div>
			                    <table class="table table-hover table-condensed table-bordered table-striped linkClass" id="dataTable" >
			                        <colgroup>
			                        	<col style="width:5%">
			                        	<col style="width:15%">
			                        	<col style="">
			                        	<col style="width:13%">
			                        	<col style="width:13%">
			                        	<col style="width:13%">
			                        	<col style="">
			                        	<col style="">
			                        	<col style="">
			                        	<col style="width:13%">
			                        </colgroup>
			                        <thead>
			                        	<tr>
			                            	<th data-field="index" data-align="center" data-formatter="indexFormatter" data-sortable="false">序号</th>
			                            	<th data-field="orderNo" data-align="center" data-sortable="true">订单编号</th>
			                            	<th data-field="gameName" data-align="center" data-sortable="true">游戏名称</th>
			                            	<th data-field="urlType" data-align="center" data-formatter="urlTypeFormatter">url类型(游戏)</th>
			                            	<th data-field="userAccount" data-align="center" data-sortable="true">用户帐号</th>
			                            	<th data-field="orderCreateTime" data-align="center" data-formatter="unixFormatterYMDHMS" data-sortable="true" >订单生成时间</th>
			                            	<th data-field="gameType" data-align="center" data-sortable="true" data-formatter="gameTypeFormatter">赠送内容</th>
			                            	<th data-field="buyTotalNum" data-align="center" data-sortable="true">购买数量</th>
			                                <th data-field="buyTotalNumGive" data-align="center" data-sortable="true">剩余赠送数量</th>
			                                <th data-field="lastTime" data-align="center" data-formatter="unixFormatterYMDHMS" data-sortable="true" >最后请求时间</th>
			                            </tr>
			                        </thead>
			                    </table>
			                </div>
			            </div>
					</div>
					<div role="tabpanel" class="tab-pane" id="profile">
				  		<div class="box">
			            	<div class="box-body">
								<div class="panel panel-default">
			                        <div class="panel-body" style="padding-bottom:5px;">
			                            <form class="form-horizontal idClassFrom" action="" method="post" id="dataForm">
			                            	<div class="searchMenu">
			                            		<div>
			                                     	<label style="width:120px;min-width:auto">订单编号：</label>
			                                        <input type="text" class="form-control" name="wm[_LIKE$w.ORDER_NO]" value=""   placeholder="请输入订单编号">
			                                    </div>
				                             	<div>
		                                     		<label style="width:120px;min-width:auto">用户帐号：</label>
			                                        <input type="text" class="form-control" name="wm[_LIKE$w.USER_ACCOUNT]" value=""   placeholder="请输入用户帐号">
			                                    </div>
			                            		<div>
			                                		<label style="width:120px;min-width:auto">游戏名称：</label>
			                                    	<sk:select cssClass="form-control select" name="wm[w.GAME_ID]" value="">
							                			<option value="">请选择</option>
														<sk:options  options="${gameNameList}" ></sk:options>
							            			</sk:select>
			                                    </div> 
			                                    <div>
			                                    	<label style="width:120px">订单生成时间：</label>
			                                        <input id="createTimeStart" name="wm[_MORE_EQUAL$w.ORDER_CREATE_TIME]" value="${page.wm._MORE_EQUAL$t2.ORDER_CREATE_TIME}"  type="text"  class="Wdate" 
													onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 00:00:00',alwaysUseStartDate:true,maxDate:'#F{$dp.$D(\'createTimeEnd\')}',minDate:'#F{$dp.$D(\'createTimeEnd\',{d:-30,H:-23,m:-59,s:-59})}'})" /> 
													<span class="pull-left">&nbsp;-&nbsp;</span>
													<input id="createTimeEnd" name="wm[_LESS_EQUAL$w.ORDER_CREATE_TIME]" value="${page.wm._LESS_EQUAL$t2.ORDER_CREATE_TIME}"  class="Wdate" 
									            	onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 23:59:59',alwaysUseStartDate:true,minDate:'#F{$dp.$D(\'createTimeStart\')}',maxDate:'#F{$dp.$D(\'createTimeStart\',{d:+30,H:+23,m:+59,s:+59})}'})" />
			                                    </div>
			                                    <div>
			                                    	<label style="width:120px">最后请求时间：</label>
			                                        <input id="createTimeStart" name="wm[_MORE_EQUAL$w.LAST_TIME]" value="${page.wm._MORE_EQUAL$a.LAST_TIME}"  type="text"  class="Wdate" 
													onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 00:00:00',alwaysUseStartDate:true,maxDate:'#F{$dp.$D(\'createTimeEnd\')}',minDate:'#F{$dp.$D(\'createTimeEnd\',{d:-30,H:-23,m:-59,s:-59})}'})" /> 
													<span class="pull-left">&nbsp;-&nbsp;</span>
													<input id="createTimeEnd" name="wm[_LESS_EQUAL$w.LAST_TIME]" value="${page.wm._LESS_EQUAL$a.LAST_TIME}"  class="Wdate" 
									            	onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 23:59:59',alwaysUseStartDate:true,minDate:'#F{$dp.$D(\'createTimeStart\')}',maxDate:'#F{$dp.$D(\'createTimeStart\',{d:+30,H:+23,m:+59,s:+59})}'})" />
			                                    </div>
			                                    <div>
			                                		<label style="width:120px">赠送内容：</label>
			                                    	<select class="form-control select" name="wm[w.GAME_TYPE]" value="">
									                	<option value="">请选择</option>
									                	<option value="0">点赞</option>
									                	<option value="5">爱心</option>
									                	<option value="6">粉丝</option>
									            	<select>
			                                    </div>
			                                    <div>
			                                    	<label style="width:120px">关键词：</label>
		                                            <input type="text" class="form-control" id="PROPERTY_VALUE_ID" style="width:336px" value=""  placeholder="请输入链接查询">
		                                            <input type="hidden"  name="wm[p.PROPERTY_VALUE]">
		                                        </div>
			                                    <div class="mal10" >
			                                    	<button type="button"  class="btn btn-primary btn-sm"  onclick="findData()"><span class='glyphicon glyphicon-search'></span>查&nbsp;询</button>
			                                    </div>
		                            		</div>
		                            	</form>
		                    		</div>
	                    			<div style="color: #f00;padding-left: 64px;margin-bottom: 10px;">
                                    	温馨提示：游戏ID是多次请求，有回调。当已完成数量等于购买数量该订单就完成。
                                    </div>
								</div>
			                    <table class="table table-hover table-condensed table-bordered table-striped idClass" id="dataTable" >
			                        <colgroup>
			                        	<col style="width:5%">
			                        	<col style="width:16%">
			                        	<col style="width:7%">
			                        	<col style="">
			                        	<col style="width:13%">
			                        	<col style="width:13%">
			                        	<col style="width:13%">
			                        	<col style="">
			                        	<col style="">
			                        	<col style="">
			                        	<col style="width:13%">
			                        </colgroup>
			                        <thead>
			                        	<tr>
			                            	<th data-field="index" data-align="center" data-formatter="indexFormatter" data-sortable="false">序号</th>
			                            	<th data-field="orderNo" data-align="center" data-sortable="true">订单编号</th>
			                            	<th data-field="propertyValue" data-align="center" data-sortable="true" >关键词</th>
			                            	<th data-field="gameName" data-align="center" data-sortable="true">游戏名称</th>
			                            	<th data-field="userAccount" data-align="center" data-sortable="true">用户帐号</th>
			                            	<th data-field="orderCreateTime" data-align="center" data-formatter="unixFormatterYMDHMS" data-sortable="true" >订单生成时间</th>
			                            	<th data-field="gameType" data-align="center" data-sortable="true" data-formatter="gameTypeFormatter">赠送内容</th>
			                            	<th data-field="buyTotalNum" data-align="center" data-sortable="true">购买数量</th>
			                            	<th data-field="alreadyFinishNum" data-align="center" data-sortable="true">已完成数量</th>
			                                <th data-field="actualGetNum" data-align="center" data-sortable="true">实际获得数量</th>
			                                <th data-field="lastTime" data-align="center" data-formatter="unixFormatterYMDHMS" data-sortable="true" >最后请求时间</th>
			                                <th data-field="deleteButton" data-align="center"  data-formatter="buttonFormatter" data-sortable="false">操作</th>
			                            </tr>
			                        </thead>
			                    </table>
			                </div>
			            </div>
				  	</div>
				</div>
            </div>
       	</div>
	</section>
   <%@ include file="/view/common/footer.jsp"%>
   <script type="text/javascript" src="${sysManagerV1}/view/js/interFace/orderUrl_list.js"></script>
</body>
<script>
// 提示信息
var msgg='<%=request.getAttribute("msg")%>';
if (msgg && msgg!=null && msgg!='null') { 
	  layer.msg(msgg);
}
</script>
</html>